<?php
require_once 'loader.php';
require_once 'Mobitv/Cronjobs/Reporting.php';
$reporting = new Mobitv_Cronjobs_Reporting();

$fromDate = '2010-07-22';
$toDate = '2010-09-30';
$today = date('Y-m-d');
$dateArr = array();
$cp = array('id' => 150, 'is_subcp' => false);

for($d=strtotime($fromDate); $d<=strtotime($toDate); $d+=60*60*24)
{
    $date = date('Y-m-d', $d);
    $dateArr[] = $date;
    $reporting->setDate($date);
    $reporting->updateDaily($cp);
    echo "UPDATE REPORTING OF CP $date \n";
}
